{extend name='admin@main'}

{block name="button"}

<button data-modal='{:url("schoolMajorAdd")}' data-title="添加专业" class='layui-btn layui-btn-sm layui-btn-primary'>添加专业</button>

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='school/search/major_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        <thead>
            <tr>
                <th>专业ID</th>
                <th>专业名称</th>
                <th>专业简称</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.short_name}</td>
            <td>
                <a data-title="编辑专业" class="layui-btn layui-btn-sm" data-modal='{:url("editMajor")}?id={$vo.id}'>编 辑</a>
            </td>
        </tr>
        {/foreach}
        
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
